package com.itheima.domain.mongo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "times")
public class UserTimes implements Serializable {
    private ObjectId id; // 主键
    private Long userId; //用户id
    private Integer times = 10;//剩余次数
    private Date created;//创建时间
}
